import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/stall",//已接通
    name: "安防态势-车位管理",
    component: () => import("../views/comprehensiveSituation/stall.vue"),
  },
  {
    path: "/environment",
    name: "安防态势-环境监测",
    component: () => import("../views/comprehensiveSituation/environment.vue"),
  },
  {
    path: "/energy",
    name: "安防态势-能耗分析",
    component: () => import("../views/comprehensiveSituation/energy.vue"),
  },
  {
    path: "/alarmType",
    name: "报警-报警分类",
    component: () => import("../views/alarm/alarmType.vue"),
  },
  {
    path: "/realtimeAlarm",//已接通
    name: "报警-实时报警记录",
    component: () => import("../views/alarm/realtimeAlarm.vue"),
  },
  {
    path: "/alarmStatistics",
    name: "报警-报警统计",
    component: () => import("../views/alarm/alarmStatistics.vue"),
  },
  {
    path: "/alarmComparison",
    name: "报警-报警对比",
    component: () => import("../views/alarm/alarmComparison.vue"),
  },
  {
    path: "/alarmHistory",//已接通
    name: "报警-报警历史记录",
    component: () => import("../views/alarm/alarmHistory.vue"),
  },
  {
    path: "/monitoringNum",//已接通
    name: "监控-监控数量",
    component: () => import("../views/monitoring/monitoringNum.vue"),
  },
  {
    path: "/monDeviceType",//已接通
    name: "监控-设备类型",
    component: () => import("../views/monitoring/monDeviceType.vue"),
  },
  {
    path: "/devicemanagement",
    name: "入侵-设备管理",
    component: () => import("../views/intrusion/devicemanagement.vue"),
  },
  {
    path: "/alarmRecord",//已接通
    name: "入侵-报警记录",
    component: () => import("../views/intrusion/alarmRecord.vue"),
  },
  {
    path: "/alarmStatistics",
    name: "入侵-入侵报警统计",
    component: () => import("../views/intrusion/incomingStatistics.vue"),
  },
  {
    path: "/broadcastManagement",//已接通
    name: "广播-设备管理",
    component: () => import("../views/broadcast/broadcastManagement.vue"),
  },
  {
    path: "/playbackRecord",//已接通
    name: "广播-播放记录",
    component: () => import("../views/broadcast/playbackRecord.vue"),
  },
  {
    path: "/playTime",//不需要
    name: "广播-播放时间统计",
    component: () => import("../views/broadcast/playTime.vue"),
  },
  {
    path: "/loopManagement",//暂认定为信息发布---已接通
    name: "回路-设备管理",
    component: () => import("../views/loop/loopManagement.vue"),
  },
  {
    path: "/loopplaybackRecord",//暂认定为信息发布--已接通
    name: "回路-播放记录",
    component: () => import("../views/loop/loopplaybackRecord.vue"),
  },
  {
    path: "/loopplayTime",//暂认定为信息发布
    name: "回路-播放时间统计",
    component: () => import("../views/loop/loopplayTime.vue"),
  },
  {
    path: "/numDevices",//已接通
    name: "门禁-设备数量",
    component: () => import("../views/accControl/numDevices.vue"),
  },
  {
    path: "/cardSwipingRecord",//已接通
    name: "门禁-刷卡记录",
    component: () => import("../views/accControl/cardSwipingRecord.vue"),
  },
  {
    path: "/cardSwipingStatistics",
    name: "门禁-刷卡统计",
    component: () => import("../views/accControl/cardSwipingStatistics.vue"),
  },
  {
    path: "/doorAlarmList",//已接通--没有数据---不知道什么字段没有渲染----没有此界面
    name: "门禁-报警记录",
    component: () => import("../views/accControl/doorAlarmList.vue"),
  },
  {
    path: "/illDistribution",
    name: "照明-照明分布",
    component: () => import("../views/lighting/illDistribution.vue"),
  },
  {
    path: "/consumptionAccounting",
    name: "照明-照明用电统计",
    component: () => import("../views/lighting/consumptionAccounting.vue"),
  },
  {
    path: "/liftNum",
    name: "电梯-设备数量",
    component: () => import("../views/lift/liftNum.vue"),
  },
  {
    path: "/operatingData",
    name: "电梯-设备运行数据",
    component: () => import("../views/lift/operatingData.vue"),
  },
  {
    path: "/airConditioning",
    name: "机组-设备数量",
    component: () => import("../views/mau/airConditioning.vue"),
  },
  {
    path: "/equipmentOperation",
    name: "机组-设备运行数据",
    component: () => import("../views/mau/equipmentOperation.vue"),
  },
  {
    path: "/fireEquipment",//已接通
    name: "消防-设备管理",
    component: () => import("../views/fire/fireEquipment.vue"),
  },
  {
    path: "/fireAlarmRecords",
    name: "消防-报警记录",
    component: () => import("../views/fire/fireAlarmRecords.vue"),
  },
  {
    path: "/fireAlarmStatistics",//--页面是按季度划分--已接通
    name: "消防-火灾报警统计",
    component: () => import("../views/fire/fireAlarmStatistics.vue"),
  },
  {
    path: "/statistics",
    name: "能耗-能耗统计",
    component: () => import("../views/energyConsumption/statistics.vue"),
  },
  {
    path: "/reportForms",
    name: "能耗-能耗报表",
    component: () => import("../views/energyConsumption/reportForms.vue"),
  },
  {
    path: "/analysis",
    name: "能耗-能耗分析",
    component: () => import("../views/energyConsumption/analysis.vue"),
  },
  {
    path: "/patrolFrequency",//巡更管理--已接通
    name: "巡更-巡更次数",
    component: () => import("../views/goonnightPatrol/patrolFrequency.vue"),
  },
  {
    path: "/patrolPersonnelNum",
    name: "巡更-巡更人数",
    component: () => import("../views/goonnightPatrol/patrolPersonnelNum.vue"),
  },
  {
    path: "/patrolPersonnel",
    name: "巡更-巡更人员",
    component: () => import("../views/goonnightPatrol/patrolPersonnel.vue"),
  },
  {
    path: "/patrolRecords",//已接通
    name: "巡更-巡更记录",
    component: () => import("../views/goonnightPatrol/patrolRecords.vue"),
  },
  {
    path: "/parkingLotData",//需要调整布局
    name: "停车场-设备运行数据",
    component: () => import("../views/parkingLot/parkingLotData.vue"),
  },
  {
    path: "/entryAndExitRecords",//已接通
    name: "停车场-出入记录",
    component: () => import("../views/parkingLot/entryAndExitRecords.vue"),
  },
  {
    path: "/louverNum",//已接通
    name: "百叶窗-设备数量",
    component: () => import("../views/louver/louverNum.vue"),
  },
  {
    path: "/controlledRrecord",//改为故障列表
    name: "百叶窗-控制记录",
    component: () => import("../views/louver/controlledRrecord.vue"),
  },
  {
    path: "/LouverStatistics",
    name: "百叶窗-控制统计",
    component: () => import("../views/louver/LouverStatistics.vue"),
  },
  {
    path: "/index",//首页
    name: "首页",
    component: () => import("../page/index.vue"),
  },
  {
    path: "/",
    redirect: "/index",
  },
];

const router = new VueRouter({
  routes,
});

export default router;
